// import 'package:flutter/foundation.dart';
// import 'package:flutter_roujiaosuo/apis/weather_api.dart';
// import 'package:flutter_roujiaosuo/models/weather_model.dart';

// class WeatherRepository {
//   final WeatherApi weatherApi;

//   WeatherRepository({@required this.weatherApi}) : assert(weatherApi != null);

//   Future<Weather> getWeather(String city) async {
//     final int locationId = await weatherApi.getLocationInfo(city);

//     Weather weather = await weatherApi.getWeatherData(locationId);

//     return weather;
//   }
// }
